package com.ruoyi.subject.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.subject.service.IQbExamRecordNoService;
import com.ruoyi.subject.service.IQbSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 考试记录-无账号Controller
 * 
 * @author lzhj
 * @date 2021-03-26
 */
@RestController
@RequestMapping("/qb/sub/recordno")
public class QbExamRecordNoController extends BaseController
{
    @Autowired
    private IQbExamRecordNoService qbExamRecordNoService;

    @Autowired
    private IQbSubjectService qbSubjectService;


    /**
     * 查询考试记录-无账号列表
     */
//    @GetMapping("/list")
//    public TableDataInfo list(QbExamRecordNo qbExamRecordNo)
//    {
//        startPage();
//        List<QbExamRecordNo> list = qbExamRecordNoService.selectQbExamRecordNoList(qbExamRecordNo);
//        return getDataTable(list);
//    }

    /**
     * 导出考试记录-无账号列表
     */
//    @PreAuthorize("@ss.hasPermi('qb:sub/recordno:export')")
//    @Log(title = "考试记录-无账号", businessType = BusinessType.EXPORT)
//    @GetMapping("/export")
//    public AjaxResult export(QbExamRecordNo qbExamRecordNo)
//    {
//        List<QbExamRecordNo> list = qbExamRecordNoService.selectQbExamRecordNoList(qbExamRecordNo);
//        ExcelUtil<QbExamRecordNo> util = new ExcelUtil<QbExamRecordNo>(QbExamRecordNo.class);
//        return util.exportExcel(list, "sub/recordno");
//    }

    /**
     * 获取考试记录-无账号详细信息
     */
//    @PreAuthorize("@ss.hasPermi('qb:sub/recordno:query')")
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Long id)
//    {
//        return AjaxResult.success(qbExamRecordNoService.selectQbExamRecordNoById(id));
//    }

    /**
     * 新增考试记录-无账号
     */
//    @PreAuthorize("@ss.hasPermi('qb:sub/recordno:add')")
//    @Log(title = "考试记录-无账号", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody QbExamRecordNo qbExamRecordNo)
//    {
//        return toAjax(qbExamRecordNoService.insertQbExamRecordNo(qbExamRecordNo));
//    }

    /**
     * 修改考试记录-无账号
     */
//    @PreAuthorize("@ss.hasPermi('qb:sub/recordno:edit')")
//    @Log(title = "考试记录-无账号", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody QbExamRecordNo qbExamRecordNo)
//    {
//        return toAjax(qbExamRecordNoService.updateQbExamRecordNo(qbExamRecordNo));
//    }

    /**
     * 删除考试记录-无账号
     */
//    @PreAuthorize("@ss.hasPermi('qb:sub/recordno:remove')")
//    @Log(title = "考试记录-无账号", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{ids}")
//    public AjaxResult remove(@PathVariable Long[] ids)
//    {
//        return toAjax(qbExamRecordNoService.deleteQbExamRecordNoByIds(ids));
//    }
}
